<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>题库管理</title>
    <th:block th:include="fragment_header :: header">
    </th:block>
</head>

<body>
<div th:replace="fragment_menu :: navmenu"></div>
<h2 class="text-center">题库管理</h2>

<div class="container mt-5">
    <h5 class="mb-2">已有考试题目列表</h5>
    <div class="panel-body" style="height: 400px; overflow-y:scroll">
        <div style="border: 1px  #000000; width: 90%; margin: 0 auto;">
            <span>
        <ul class="list-group">
            <li th:each="question : ${questionList}" class="list-group-item">
                 <div class="text">
                    <label th:text="${question.id}"></label>
                    <label th:text="${question.description}"></label>
                    <ul>
                        <li th:each="option : ${question.options}">
                            <span th:text="${option.choice}"></span>
                            <span th:text="${option.answer}"></span>
                        </li>
                    </ul>
                </div>
            </li>
        </ul>
                </span>
        </div>
    </div>

</div>

<div styl="peadding: 20px " class="d-flex align-items-center justify-content-center">
    <a th:href="@{ ${ #mvc.url('QTC#uploadtxt').build() } }" class="btn btn-primary">上传</a>
</div>

</body>
</html>